;(function(){
    function fun(n){
        console.log("hello " + n);
    }
    window.fun = fun;
})();